<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>列表渲染</title>
</head>
<body>
    <ul id="personTable">
        <li v-for="person in personList" :key="person.idCardNumber">{{person.name}}-{{person.name}}-{{person.idCardNumber}}</li>
    </ul>
</body>

<script src="../script/vue.js"></script>

<script>
    new Vue({
        el: '#personTable',
        data: {
            personList: [
                {'name':'张三','age':18,'idCardNumber':'360122199590945252'},
                {'name':'李四','age':19,'idCardNumber':'360122199590942462'},
                {'name':'王五','age':20,'idCardNumber':'360122199590945246'}
            ]
        }
    })
</script>
</html>